package com.itgungnir.diyshuo.activity.main_activity;

import android.support.v4.app.FragmentActivity;

/**
 * 用在MainActivity中的Presenter类
 */
public class MainPresenter implements MainContract.Presenter {
    private MainContract.Model model;
    private MainContract.View view;

    public MainPresenter(MainContract.View view) {
        this.view = view;
        this.model = new MainModel();
    }

    @Override
    public void initFragments(FragmentActivity activity) {
        model.initFragments(activity);
    }

    @Override
    public void changeFragment(FragmentActivity activity, int checkedId) {
        model.changeFragment(activity, checkedId);
    }
}